<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="/WEB-INF/c.tld" prefix="c"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	String id=request.getParameter("id");
%>

<!DOCTYPE HTML >
<html>
<head>
<base href="<%=basePath%>">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, minimal-ui">
<title>药品详情</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3" />
<link rel="stylesheet" href="<%=basePath%>css/wx.css" />
<link rel="stylesheet" href="<%=basePath%>css/weui.css" />
<link rel="stylesheet" href="<%=basePath%>css/example.css" />
<link rel="stylesheet" href="<%=basePath%>css/talkReult.css" />
<meta http-equiv="description" content="This is my page">
<script type="text/javascript" src="<%=basePath%>js/jquery.js"></script>
<style type="text/css">
.myhead {
	font-size: 20px;
	text-align: center;
	padding: 10px;
	border: 1px bolid #00fff;
}

.tip {
margin-left: 5%;
margin-right: 5%
}
.weui_extra_area ul li{
list-style:none; /* 将默认的列表符号去掉 */
padding:8px; /* 将默认的内边距去掉 */
float:left; /* 往左浮动 */
height: auto;
}
</style>
</head>
<script type="text/javascript">
var id="<%=id%>";
$.ajax({
        url: "<%=basePath%>medicine/getAllMedicineListById.spring",
    	data:{id:id},
        type: "POST",
        dataType: 'json',
        cache: false,
        success: function (ret) {
        	var html="";
        	if(ret!=null){
        		for(var i=0;i<ret.list.length;i++ ){
        				var data=ret.list[i];
        				$("#name").html(data.name);
        				$("#ingredient").html(data.ingredient);
        				$("#traits").html(data.traits);
        				$("#effectType").html(data.effectType);
        				$("#indications").html(data.indications);
        				$("#specification").html(data.specification);
        				$("#dosage").html(data.dosage);
        				$("#adverseReactions").html(data.adverseReactions);
        				$("#taboo").html(data.taboo);
        				$("#precautions").html(data.precautions);
        				$("#price").html(data.price);
        				
        		}
        		
        	}
        }
    });

</script>
<body>
	<section>
		<div class="note blue tip" >
			<span style="font-size: 20px;margin-left: -1em;color: #fff;">药品名称：</span>
			<p id="name"></p>
		</div>
	</section>
	<section>
		<div class="note blue tip" >
			<span style="font-size: 20px;margin-left: -1em;color: #fff;">成分：</span>
			<p id="ingredient"></p>
		</div>
	</section>
	<section>
		<div class="note blue tip">
			<span style="font-size: 20px;margin-left: -1em;color: #fff;">性状：</span>
			<p id="traits"></p>
		</div>
	</section>
	<section>
		<div class="note blue tip">
			<span style="font-size: 20px;margin-left: -1em;color: #fff;">作用类别：</span>
			<p id="effectType"></p>
		</div>
	</section>
	<section>
		<div class="note blue tip">
			<span style="font-size: 20px;margin-left: -1em;color: #fff;">适应症：</span>
			<p id="indications"></p>
		</div>
	</section>
	<section>
		<div class="note blue tip">
			<span style="font-size: 20px;margin-left: -1em;color: #fff;">规格：</span>
			<p id="specification"></p>
		</div>
	</section>
	<section>
		<div class="note blue tip">
			<span style="font-size: 20px;margin-left: -1em;color: #fff;">用法用量：</span>
			<p id="dosage"></p>
		</div>
	</section>
	<section>
		<div class="note blue tip">
			<span style="font-size: 20px;margin-left: -1em;color: #fff;">不良反应：</span>
			<p id="adverseReactions"></p>
		</div>
	</section>
	<section>
		<div class="note blue tip">
			<span style="font-size: 20px;margin-left: -1em;color: #fff;">禁忌：</span>
			<p id="taboo"></p>
		</div>
	</section>
	<section>
		<div class="note blue tip">
			<span style="font-size: 20px;margin-left: -1em;color: #fff;">注意事项：</span>
			<p id="precautions"></p>
		</div>
	</section>
	<section>
		<div class="note blue tip">
			<span style="font-size: 20px;margin-left: -1em;color: #fff;">推荐价格：</span>
			<p id="price"></p>
		</div>
	</section>

</body>
</html>
